package com.ebupt.migu.music.sms.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *
 */
@DS("mysql_mg")
@Mapper
public interface SmsTmplMapper {

    public Integer addSmsTmpl(Map<String, Object> paramMap);

    Integer delSmsTmpl(Map<String, Object> paramMap);

    List<String> getSmsSensitiveWords(@Param("content") String content);

    List<Map<String, Object>> getSmsTmplById(Map<String, Object> paramMap);

    List<Map<String, Object>> querySmsTmpl(Map<String, Object> paramMap);

    int querySmsTmplCount(Map<String, Object> paramMap);

    List<Map<String, Object>> queryCheckers(Map<String, Object> paramMap);

    int queryCheckersCount(Map<String, Object> paramMap);

    /**
     * 【英文】登录名转【中文】用户名
     *
     * @param creator
     * @return
     */
    String login_name_to_user_name(String creator);
}
